
function validateManageOrders() {
	selectionMade = false;
	error="";
	if (document.mainform.buttonPressed.value != "SHIP ALL" &&
		document.mainform.buttonPressed.value != "CHARGE ALL" &&
		document.mainform.buttonPressed.value != "PRINT ALL") {
			for (i = 0; i < document.getElementById("orderCount").value; i++) {
			
				if (document.getElementById("selectedOrder" + i).checked) {
					selectionMade = true;
				}
			}
			if (!selectionMade) {
				error = "&nbsp;&bull;Please select order.<br/>"
			}
			
			return decideOnSubmit(error);
	}
	else return true;
}
